
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<% String path = request.getContextPath(); %>
<script type="text/javascript" src="<%=path%>/static/web/js/home.min.js"></script>
<c:forEach items="${industrys}" var="industry" varStatus="stat">

    <c:if test="${industry.parent.id eq null}">
        <div class="menu_box" data-main="${count=defaultCount}">
            <div class="menu_main">
                <h2>${industry.industryName}<span></span></h2>
                <c:forEach items="${industrys}" var="industryNext">

                    <c:if test="${industry.id eq industryNext.parent.id}">
                        <c:forEach items="${industrys}" var="industryLast" varStatus="statu" >

                                <c:if test="${count>0}">

                                    <c:if test="${industryLast.hot && industryNext.id eq industryLast.parent.id}" var="index">
                                        <a  data-data="${count=count-1}">${industryLast.industryName}</a>

                                    </c:if>
                                </c:if>

                        </c:forEach>
                    </c:if>
                </c:forEach>
            </div>
        <div class="menu_sub dn">
            <c:forEach items="${requestScope.industrys}" var="industryNext">
                <c:if test="${industry.id eq industryNext.parent.id}">
                    <dl class="reset">
                        <dt><a href="/zhuang/job/list?industrieId=${industryNext.id}">${industryNext.industryName}</a></dt>
                        <dd>
                            <c:forEach items="${requestScope.industrys}" var="industryLast">
                                <c:if test="${industryNext.id eq industryLast.parent.id}">
                                    <c:if test="${industryLast.hot}">
                                        <a href="/zhuang/job/list?search=${industryLast.industryName}" class="curr">${industryLast.industryName}</a>
                                    </c:if>
                                    <c:if test="${!industryLast.hot}">
                                        <a href="/zhuang/job/list?search=${industryLast.industryName}">${industryLast.industryName}</a>
                                    </c:if>
                                </c:if>
                            </c:forEach>
                        </dd>
                    </dl>
                </c:if>
            </c:forEach>
        </div>
        </div>
    </c:if>
</c:forEach>
